/**
 * PoolVO
 * @type {{poolId: string, title: string, difficulty: string, description: string}}
 */
export const PoolVO = {
    poolId: '', //后端为 Long
    title: '',
    difficulty: '',
    description: '',
}

/**
 * PoolAddDTO
 * @type {{title: string, difficulty: string, description: string,  allType: string[], cases: string[][], results: string[][]}}
 */
export const PoolAddDTO = {
    title: '',
    difficulty: '',
    description: '',
    allType:[''],
    cases: [['']],
    results: [['']],
}

/**
 * PoolUpdateDTO
 * @type {{poolId: string, title: string, difficulty: string, description: string, cases: string, results: string}}
 */
export const PoolUpdateDTO = {
    poolId: '', //后端为 Long
    title: '',
    difficulty: '',
    description: '',
    cases: '',
    results: '',
}

export const DiffType = ['easy', 'medium', 'hard'];

export const diffTagType = (diff) => {
    return diff === 'easy' ? 'success' : diff === 'medium' ? 'warning' :
        diff === 'hard' ? 'danger' : 'info';
}

export const diffTagText = (diff) => {
    return diff === 'easy' ? '简 单' : diff === 'medium' ? '中 等' :
        diff === 'hard' ? '困 难' : '未 知';
}
